package com.jumi.microservice.warehousein.service;

import com.jumi.microservice.warehousein.domain.JmWarehouseIn;
import com.jumi.microservice.warehousein.domain.JmWarehouseInAuditLog;
import com.jumi.microservice.warehousein.dto.JmWarehouseInAuditRequest;
import com.jumi.microservice.warehousein.dto.JmWarehouseInRequest;
import com.jumi.microservice.warehousein.dto.JmWarehouseInResponse;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author ssk
 * @create 2020/8/11 15:25
 **/
public interface JmWarehouseInService {

    int save(JmWarehouseIn warehouseIn);

    int update(JmWarehouseIn warehouseIn);

    JmWarehouseInResponse findById(Long inId);

    List<JmWarehouseInResponse> findAll(JmWarehouseInRequest warehouseIn);

    int auditBatch(Long[] inIds, String auditRemark, BigDecimal price, Integer status,String auditBy);

    List<JmWarehouseInAuditLog> findAuditLogById(Long inId);

    int audit(JmWarehouseInAuditRequest auditRequest);

    int syncPurchaseOrders(String auditBy);
}
